#include "windoweventlistener.h"

#include "application.h"

namespace infinity {

WindowEventListener::WindowEventListener()
:	dw::system::Window::EventListener()
{
}

WindowEventListener::~WindowEventListener()
{
}

void WindowEventListener::onClose(dw::system::Window* sender, dw::system::Window::EventArg& eventArg)
{
	Application::getInstance().stop();
}

} // namespace infinity
